/**
 * 角色管理页-scss
 */

@import "../../../../sass/base.scss";

:host ::ng-deep .ant-table-placeholder {
  display: none;
}
::ng-deep .ant-checkbox-wrapper {
  width: 23%;
  &:nth-child(1) {
    margin-left: 8px;
  }
  line-height: 2.5;
}
.member-manage {
  height: 100%;
  width: 100%;
  padding: 32px;
}
.member-manage-head {
  height: 70px;
  line-height: 50px;
  font-size: 14px;
  overflow: hidden;
}
.member-manage-body {
  height: calc(100% - 70px);
  width: 100%;
  background-color: white;
  box-shadow: 0px 0px 8px #ddd;
  overflow: hidden;
  .body {
    height: calc(100% - 50px);
    width: 100%;
    .icon {
      color: #999999;
      font-size: 18px;
      &:hover {
        color: #419fe8;
      }
    }
  }
  .pager {
    text-align: center;
  }
}
.common-main-wrap {
  .system-layout-wrap {
    width: 100%;
    height: 100%;
    position: relative;

    $menuWidth: 200px;

    .system-layout-menu {
      width: $menuWidth;
      height: 100%;
      position: relative;
      background: #fff;

      .layout-menu-wrap {
        position: absolute;
        top: 20px;
        width: 100%;
        bottom: 0;
        left: 0;
        overflow-y: auto;
        padding-top: 60px;
      }
    }

    .system-layout-cont {
      position: absolute;
      top: 20px;
      left: $menuWidth + 10px;
      bottom: 0;
      right: 0;
      overflow-y: auto;
    }
  }

  ::ng-deep .ant-menu-submenu {
    //border-bottom: 1px solid #ddd;
    &.ant-menu-submenu-open {
      //border-bottom: 1px solid #ddd;
      .ant-menu-sub.ng-star-inserted {
        border-bottom: 1px solid #ddd;
      }
    }

    .ant-menu-submenu-title {
      height: 46px;
      line-height: 46px;
      // border-bottom: 1px solid #DDD;
      // @include vertical(#ffffff, #f8f8f8);
      // margin: 0;
      color: #333;
      padding-left: 10px;
      cursor: pointer;

      .ant-menu-submenu-arrow {
        display: none;
      }

      .ant-menu-item {
        position: relative;
      }
    }
  }

  ::ng-deep .item-btn {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding-left: 30px;
    color: #888;
    transition: all 0.2s ease;

    &:hover,
    &.active {
      color: #fff;
      background: $PrimaryColor;
    }
  }

  .close {
    float: right;
    cursor: pointer;
  }

  .ant-menu:not(.ant-menu-horizontal) .ant-menu-item-selected {
    background: $PrimaryColor;

    .item-btn {
      color: #fff;
    }

    &::after {
      display: none;
    }
  }
}

.common-bread-search {
  float: right;
  margin-top: 10px;
  min-width: 280px;
}
// 权限点选择样式

$rowHeight: 32px;
.form-rows {
  width: 100%;
  min-height: $rowHeight;
  // margin: 15px auto;
  margin: 10px auto 0;
  position: relative;
  display: inline-block;

  &.min {
    margin: 5px auto;
  }
  &.none {
    margin: 0px auto;
  }
  &.auto {
    .rows-lab {
      width: auto;
    }
    .rows-inp {
      position: static;
      margin-left: 5px;
    }
  }
  &.bold {
    .rows-lab {
      font-weight: bold;
      font-size: 14px;
    }
  }

  .select-group-wrap {
    overflow: hidden;
    .group-container {
      width: 110%;
      //padding-right: 10%;
      .group-item-wrap {
        display: inline-block;
      }
      ::ng-deep .ant-select.select-group-1,
      .select-group-1 {
        width: 90%;
      }
      ::ng-deep .ant-select.select-group-2,
      .select-group-2 {
        width: 42%;
        margin-right: 6%;
      }
      ::ng-deep .ant-select.select-group-3,
      .select-group-3 {
        width: 28%;
        margin-right: 3%;
      }
      ::ng-deep .ant-select.select-group-4,
      .select-group-4 {
        width: 19.5%;
        margin-right: 4%;
      }
      ::ng-deep .ant-select.select-group-5,
      .select-group-5 {
        width: 14%;
        margin-right: 5%;
      }
    }
  }

  .upload-image-wrap {
    height: auto;
    position: relative;
    .upload-image {
      width: 150px;
      height: 120px;
      @include border-radius(5px);
      border: 1px dashed $ColorC;
      overflow: hidden;
      position: relative;
      text-align: center;
      line-height: 120px;
      .lab-tip {
        font-size: 12px;
        color: $ColorC;
      }
      .inp-upload {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        @include opacity(0);
        z-index: 5;
        cursor: pointer;
      }
      .thumb-wrap {
        display: inline-block;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 4;
      }
      .upload-thumb {
        max-width: 100%;
        max-height: 100%;
        display: inline-block;
      }
    }
  }

  .upload-file-wrap {
    // width: 360px;
    // display: inline-block;
    .upload-file {
      $h: 44px;
      height: $h;
      border: 1px solid #ccc;
      position: relative;
      overflow: hidden;
      .opacity-file {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 10;
        max-width: 100%;
        @include opacity(0);
      }
      .file-name {
        display: inline-block;
        height: $h;
        line-height: $h - 2px;
        font-size: 12px;
        position: absolute;
        top: 0;
        left: 5px;
        right: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .btn-file-choose {
        float: right;
        margin: 5px;
      }
    }
    &.min {
      .upload-file {
        $h: 32px;
        height: $h;
        .file-name {
          height: $h;
          line-height: $h - 2px;
        }
        .btn-file-choose {
          float: right;
          margin: 3px;
        }
      }
    }
  }
  .upload-file-progress-wrap {
    .content-item {
      // min-height: 32px;
      // margin: 10px auto;
      position: relative;
      margin-top: 10px;

      &.full {
        margin-left: -90px;
      }
      .upload-file-inp {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        @include opacity(0);
      }
      .upload-file-title {
        height: 32px;
        line-height: 32px;
        text-align: left;
        padding-left: 5px;
        background: $AuxiliaryColor;
        position: relative;
        .btn-del-file {
          display: inline-block;
          width: 32px;
          height: 32px;
          position: absolute;
          top: 0;
          right: 0px;
          line-height: 32px;
          color: $PrimaryFontColor;
          text-decoration: none;
          outline: none;
          text-align: center;
        }
      }
      .upload-file-progress {
        min-height: 32px;
        margin-top: 10px;
        .upload-file-name {
          font-size: 12px;
          color: $ColorBC;
        }
      }
    }
  }

  .value-text {
    font-size: 12px;
    color: $PrimaryColor;
    display: inline-block;
    margin: 0 10px;
  }

  $labWidth: 70px;
  // 静态，高度自动增长
  &.static,
  &.upload-file-progress {
    .rows-lab {
      position: absolute;
      top: 0;
      left: 0;
    }
    .rows-inp {
      position: relative;
      display: block;
      margin-left: $labWidth + 68px;
      left: initial;
    }
  }
  &.split-line-row {
    min-height: 11px;
    .split-line {
      display: inline-block;
      width: 110%;
      border-top: 1px solid #d9d9d9;
      margin: 5px auto;
      margin-left: -5%;
    }
  }
  &.column-row-2 {
    width: 45%;
    display: inline-block;
    &.right {
      float: right;
    }
  }
  .ant-select {
    width: 100%;
  }

  .rows-lab {
    display: inline-block;
    min-width: $labWidth;
    text-align: left;
    height: $rowHeight;
    line-height: $rowHeight;
    &.full {
      width: 80%;
      position: relative;
    }
    &.rows-lab-icon {
      position: relative;
      padding-left: 10px;
      height: 40px;
      border-bottom: 1px solid #ddd;
      margin-bottom: 10px;
      &::after {
        content: "";
        display: inline-block;
        width: 3px;
        height: 18px;
        position: absolute;
        background: #1890ff;
        top: 5px;
        left: 0;
        border-radius: 3px;
      }
    }
  }
  .rows-inp {
    position: absolute;
    min-height: 30px;
    right: 0;
    left: $labWidth + 5px;
    top: 0;
    &.text {
      line-height: 30px;
    }
    &.static {
      position: relative;
      left: initial;
    }
    &.full {
      position: relative;
      left: initial;
      margin-left: 0;
      display: block;
    }
    .value-group-item {
      display: inline-block;
      margin-right: 10px;
    }
    .status-success {
      color: #0059b3;
    }
    .rows-inp-child-group {
      display: inline-block;
      width: 100%;
      //   margin-bottom: 20px;
    }
    .bold {
      font-size: 16px;
      font-weight: bold;
    }
    .remark {
      font-size: 12px;
      color: #f00;
    }
    .desc {
      font-size: 12px;
      color: #ccc;
    }
    .remark-text {
      @include border-radius(4px);
      padding: 4px 11px;
      font-size: 14px;
      color: rgba(0, 0, 0, 0.65);
      background: #fff;
      border: 1px solid #d9d9d9;
      height: 90px;
      overflow: auto;
      @include scrollbar();
      display: inline-block;
      width: 100%;
    }
    a {
      margin-right: 8px;
    }
  }
  input {
    display: inline-block;
    width: 100%;
    // max-width: 360px;
    &.max {
      max-width: 360px;
    }
  }
  textarea {
    resize: none;
  }
  .require {
    display: inline-block;
    position: absolute;
    height: 30px;
    line-height: 30px;
    color: #f00;
    top: 0px;
    right: -10px;
    &.static {
      position: relative;
    }
  }
}
